home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / QuickDraw 3D / Samples / SampleCode / PickOne / headers / PickOne_Support.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-14  |  1.3 KB  |  50 lines  |  [TEXT/CWIE]

  1. /*  PickOne_Support.h
  2.                                                                             
  3.     Quickdraw 3D sample code
  4.     
  5.     This file contains utility routines for QuickDraw 3d sample code. This
  6.     app shows how to apply a texture shader to an object.  Bear in mind
  7.     that any object that you wish to texture map needs to have UV parameters
  8.     applied.
  9.                                                                             
  10.     Nick Thompson
  11.     (c)1994-96 Apple computer Inc., All Rights Reserved                                
  12.  
  13. */
  14.  
  15. #ifndef _BOXPAINTSUPPORT_H_
  16. #define _BOXPAINTSUPPORT_H_
  17.  
  18. /*  Macintosh System Stuff */
  19. #include    <Windows.h>
  20.  
  21. /*  QuickDraw 3D stuff */
  22. #include    "QD3D.h"
  23. #include    "QD3DErrors.h"
  24. #include    "QD3DView.h"
  25.  
  26. #include    "PickOne_document.h"
  27.  
  28. /* --------------------------------------------------------------------------------------- */
  29.  
  30. TQ3GroupObject MyNewModel();
  31.  
  32. void MyColorBoxFaces( TQ3BoxData *myBoxData );
  33.  
  34. TQ3GroupObject MyNewBox();
  35. TQ3GroupObject MyNewCone();
  36. TQ3GroupObject MyNewEllipsoid();
  37.  
  38. TQ3Status myAddMatrixTransformToGroup( TQ3GroupObject theGroup);
  39. TQ3Status mySetGroupState(TQ3GroupObject theGroup);
  40.  
  41. TQ3ViewObject     MyNewView(WindowPtr theWindow) ;
  42. TQ3Status GetDocumentGroupBoundingBox( 
  43.                                     TQ3ViewObject view,
  44.                                     TQ3GroupObject    group, 
  45.                                     TQ3BoundingBox *viewBBox);
  46. TQ3Status ComputeCenterOfBoundingBox(TQ3BoundingBox *viewBBox,
  47.                                     TQ3Point3D    *center);
  48.  
  49. #endif
  50.